package cn.edu.cimv.dao.mapper;

import cn.edu.cimv.dao.entity.News;
import cn.edu.cimv.dao.entity.Notices;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Repository
public interface NoticesMapper {
    //insert 通知公告
    void insertNotices(@Param("notices")Notices notices);
    //update 通知公告
    void updateNotices(@Param("notices")Notices notices);
    //delete 通知公告
    void deleteNotices(@Param("id") int id);
    //查询通知公告列表
    List<Notices> queryNotices();
    //根据ID查单条通知公告
    Notices queryNoticesById(@Param("id") int id);
    //查询最新的通知公告4条
    List<Notices> queryNoticesLast(@Param("noticesCount")int noticesCount);
}
